﻿// See https://aka.ms/new-console-template for more information
using _2FA;

var secret = "3KCNPWFXVGQVX2Z2A73AN5KDPJ3WJ2KZ";// TOTP.GenerateSecret(); // 生成随机密钥
Console.WriteLine(secret);
var totpCode = TOTP.GenerateCode(secret);
Console.WriteLine(totpCode); // 输出 TOTP 动态验证码
Console.WriteLine(TOTP.GetRemainingTime()); //过期时间
Console.ReadKey();